package com.qfedu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 概述:
 *
 * @Author: Tbh
 * @Date: 2022/6/21 16:29
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private long id;
    @TableField  //基础字段属性
    private String userName;
    private String password;
    private String name;
    private int age;
    private String email;
}
